/*
 * LtiBandPass.h
 *
 *  Created on: May 29, 2009
 *      Author: flaviotruzzi
 */

#ifndef _LTIBANDPASS_H
#define	_LTIBANDPASS_H

#include <cv.h>

class LtiBandPass {

    public:
        LtiBandPass(IplImage* src);
        void setBand(int ymin, int ymax, int cbmin,
                     int cbmax, int crmin, int crmax);
        void Read(IplImage* src);
        void threshold(IplImage* dst);
        void ApplyMorph();
        virtual ~LtiBandPass();
        IplImage* thresholded;

    private:
        IplImage* aux;
        IplImage* y;
        IplImage* cb;
        IplImage* cr;
        int ymin;
        int ymax;
        int cbmin;
        int cbmax;
        int crmin;
        int crmax;
        IplConvKernel* Element;

};
#endif	/* _LTIBANDPASS_H */
